import request from '@/utils/request'

// 查询商业伙伴类别列表
export function listBpCategory(query) {
  return request({
    url: '/basic/bpCategory/list',
    method: 'get',
    params: query
  })
}

// 查询商业伙伴类别详细
export function getBpCategory(bpCategory) {
  return request({
    url: '/basic/bpCategory/' + bpCategory,
    method: 'get'
  })
}

// 新增商业伙伴类别
export function addBpCategory(data) {
  return request({
    url: '/basic/bpCategory',
    method: 'post',
    data: data
  })
}

// 修改商业伙伴类别
export function updateBpCategory(data) {
  return request({
    url: '/basic/bpCategory',
    method: 'put',
    data: data
  })
}

// 删除商业伙伴类别
export function delBpCategory(bpCategory) {
  return request({
    url: '/basic/bpCategory/' + bpCategory,
    method: 'delete'
  })
}
